package com.example.agriculyural.Decoraror;

import com.example.agriculyural.FactoryMethod.AgriculturalMachine;
import com.example.agriculyural.Observer.EnvironmentData;

public class GPSDecorator extends MachineDecorator {
    public GPSDecorator(AgriculturalMachine machine) {
        super(machine);
    }

    @Override
    public void update(EnvironmentData data) {
        super.update(data);
        System.out.println("GPS增强功能: " + machine.getMachineType() + " " + machine.getId() + " 精确定位已激活");
    }
}
